import { httpDelete, httpPost, httpPut } from "@/utils/http"

export interface OrganizationTypeItem {
    _id: string;
    name: string;
}

export const findOrganizationTypesApi = (data?: object) => {
    return httpPost('/organizationTypes/search', data)
}
export const deleteOrganizationTypesApi = (data?: object) => {
    return httpDelete('/organizationTypes/remove', data)
}
export const addOrganizationTypesApi = (data?: object) => {
    return httpPost('/organizationTypes/add', data)
}
export const updateOrganizationTypesApi = (data?: object) => {
    return httpPut('/organizationTypes/update', data)
}